﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Company_Default : System.Web.UI.Page
{
    public string CompanyName, UserID, mContent, Sale, Buy, c_two, c_three, ctype, Pattern1, Pattern2, Pattern3, Pattern4, Address, WebUrl, keywords, p_title;
    string sql;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            info();
            //txt_Two();
            //txt_Three();
        }
    }
    private void info()
    {
        if (Request.QueryString["p_UserID"] != "")
        {
            int uid = int.Parse(Request.QueryString["p_UserID"]);
            DataTable dt = Class1.ExecSel("select * from wj_User where wj_ID=" + uid + "");
            CompanyName = Convert.ToString(dt.Rows[0]["wj_CompanyName"].ToString());
            keywords = Convert.ToString(dt.Rows[0]["wj_keywords"].ToString());
            UserID = Convert.ToString(dt.Rows[0]["wj_ID"].ToString());
            mContent = Convert.ToString(dt.Rows[0]["wj_Content"].ToString());
            Sale = Convert.ToString(dt.Rows[0]["wj_Sale"].ToString());
            Buy = Convert.ToString(dt.Rows[0]["wj_Buy"].ToString());
            ctype = Convert.ToString(dt.Rows[0]["wj_CompanyType"].ToString());
            Pattern1 = Convert.ToString(dt.Rows[0]["wj_Pattern1"].ToString());
            Pattern2 = Convert.ToString(dt.Rows[0]["wj_Pattern2"].ToString());
            Pattern3 = Convert.ToString(dt.Rows[0]["wj_Pattern3"].ToString());
            Pattern4 = Convert.ToString(dt.Rows[0]["wj_Pattern4"].ToString());
            Address = Convert.ToString(dt.Rows[0]["wj_Address"].ToString());
            WebUrl = Convert.ToString(dt.Rows[0]["wj_WebUrl"].ToString());

           
        }
    }

}
